package primary;

public class L_Parameter {

    class User4 {
        int id;
        String name;
        String pwd;

        public User4(int id, String name, String pwd) {
            this.id = id;
            this.name = name;
            this.pwd = pwd;
        }

        public void testParameterTransfer(User4 u) {
            u.name = "yeung";
        }
    }

    public static void main(String[] args) {
//        要想直接创建内部类的对象,必须使用外部类的对象来创建内部类对象
        User4 u1 = new L_Parameter().new User4(100, "mango", "null");
        u1.testParameterTransfer(u1);
        System.out.println(u1.name);
    }
}
